package cn.xiqi.cms.hibernate.service;

import cn.xiqi.cms.hibernate.DAO.AccountDAO;
import cn.xiqi.cms.hibernate.beans.Accountinfo;

public interface AccountService {
	public int register(Accountinfo record);
	public boolean delete(Accountinfo record);
	public boolean changePsw(int userID, String newpsw);
	public boolean isExist(String username);
	public Accountinfo getByUsr(int userID);
	public boolean login(String username, String password);
	public void setDao(AccountDAO dao);
	public Accountinfo getByID(int accountid);
}
